package com.atguigu.eduservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.atguigu.eduservice.mapper")
@ComponentScan(basePackages = {"com.atguigu"})//swagger，添加扫描包，两个项目的包名要一致，不然报错
@EnableDiscoveryClient  //nacos 服务注册
@EnableFeignClients  //feign服务调用
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class);
    }
}
